package com.pc.tas.page;

import org.json.JSONObject;

public class Page {
	private String id;
	private String pageName;
	private String parentId;
	private String attrs;
	private boolean hasChildren;
	
	
	public JSONObject toJSON() throws Exception {
    	JSONObject param = new JSONObject();
    	param.put("id", this.getId());
    	param.put("pageName", this.getPageName());
    	param.put("parentId", this.getParentId());
    	param.put("attrs", this.getAttrs());    
    	param.put("hasChildren", this.isHasChildren());  
    	return param;
    }
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getAttrs() {
		return attrs;
	}
	public void setAttrs(String attrs) {
		this.attrs = attrs;
	}
	
	public boolean isHasChildren() {
		return hasChildren;
	}
	public void setHasChildren(boolean hasChildren) {
		this.hasChildren = hasChildren;
	}
}
